
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Pig;
import cn.edu.scau.cmi.hombio.domain.Sale;
import cn.edu.scau.cmi.hombio.domain.SalePig;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for SalePig entities
 * 
 */
public interface SalePigService {

	/**
	* Return a count of all SalePig entity
	* 
	 */
	public Integer countSalePigs();

	/**
	* Save an existing Pig entity
	* 
	 */
	public SalePig saveSalePigPig(Integer id, Pig related_pig);

	/**
	 */
	public SalePig findSalePigByPrimaryKey(Integer id_1);

	/**
	* Delete an existing Sale entity
	* 
	 */
	public SalePig deleteSalePigSale(Integer salepig_id, Integer related_sale_id);

	/**
	* Delete an existing SalePig entity
	* 
	 */
	public void deleteSalePig(SalePig salepig);

	/**
	* Delete an existing Pig entity
	* 
	 */
	public SalePig deleteSalePigPig(Integer salepig_id_1, Integer related_pig_id);

	/**
	* Return all SalePig entity
	* 
	 */
	public List<SalePig> findAllSalePigs(Integer startResult, Integer maxRows);

	/**
	* Save an existing SalePig entity
	* 
	 */
	public void saveSalePig(SalePig salepig_1);

	/**
	* Load an existing SalePig entity
	* 
	 */
	public Set<SalePig> loadSalePigs();

	/**
	* Save an existing Sale entity
	* 
	 */
	public SalePig saveSalePigSale(Integer id_2, Sale related_sale);
}